package com.yanyilu.basing.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Sxx
 * @since 2020-10-28
 */
@Data
@Accessors(chain = true)
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;

    @TableField("real_name")
    private String realName;
    /**
     * 身份证号
     */
    @TableField("identity_no")
    private String identityNo;

    /**
     * 性别
     */
    private String sex;

    /**
     * 鞋码
     */
    @TableField("shoe_size")
    private Float shoeSize;

    /**
     * 收货地址
     */
    @TableField("shipping_addr")
    private String shippingAddr;

    /**
     * 地址
     */
    private String addr;

    /**
     * 联系方式
     */
    @TableField("contact_details")
    private String contactDetails;

    /**
     * 头像
     */
    @TableField("head_imge")
    private String headImge;
    /**
     * 用户状态
     * 0,未报名
     * 1,已报名
     */
    @TableField("status")
    private Integer status;

    @TableField("sign_up_state")
    private Integer signUpState;

    @TableField("is_pay")
    private Integer isPay;

    @TableField("is_unbox")
    private Integer isUnbox;

    @TableField("is_receive")
    private Integer isReceive;



    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

}
